package com.wgo.precise.client.ui.view.editor.history;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class HistoryTableContentViewer implements IStructuredContentProvider /*, IModelTableEditor<ClientModelItem> */{

	public Object[] getElements(Object inputElement) {
		if (inputElement instanceof List /*&& ((List)inputElement).getClass().getDeclaredAnnotations()[0].equals(CommandHistory.class)*/){
			return ((List)inputElement).toArray();
		}
		return new Object[0];
	}

	public void dispose() {}
	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {}

}
